<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>留言板</title>
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <script type="text/javascript" charset="utf-8" src="<?php echo $ueditor;?>ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo $ueditor;?>ueditor.all.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="<?php echo $ueditor;?>lang/zh-cn/zh-cn.js"></script>
    <style>
        h1{
            text-align: center;
        }
        input{
            width: 50px;
            height: 25px;
        }
        button{
            width: 100px;
            height: 30px;
        }
        #right{
            float: right;
        }
    </style>
</head>
<body>
<h1>发送留言</h1>
<form action="<?php echo $url;?>m=index&c=insert&f=dateinsert" method="post">
    <script id="editor" name="text" type="text/plain"></script>
    <select name="g_id" id="">
        <?php
        foreach($user as $m => $n){
        if($n['id'] != $_SESSION['id']){    ?>
        <option value="<?php echo $n['id']  ?>">
            <?php echo $n['username']   ?>
        </option>
        <?php };?>
        <?php };?>
    </select>
    <input type="submit" value="发送" name="insert" onclick="return on_form()">
</form>
<div id="right">
    <button onclick="btn2()">返回</button>
    <button onclick="btn1()">退出登录</button>
</div>

<script type="text/javascript" src="<?php echo $js;?>insert.js"></script>
</body>
</html>
